
package com.microweb.toastmaster.dao;

import java.util.List;

import com.microweb.toastmaster.dao.Dao;
import com.microweb.toastmaster.model.Actor;

public interface ActorDao extends Dao {

    /**
     * Retrieves all of the actors
     */
    public List<?> getActors(Actor actor);

    /**
     * Gets actor's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the actor's id
     * @return actor populated actor object
     */
    public Actor getActor(final Long id);
    
    public List<?> getActors(final String username, final String rolename);

    /**
     * Saves a actor's information
     * @param actor the object to be saved
     */    
    public void saveActor(Actor actor);

    /**
     * Removes a actor from the database by id
     * @param id the actor's id
     */
    public void removeActor(final Long id);
}

